(function () {
  let myChart = echarts.init(document.querySelector(".left1"));

  let option = {
    xAxis: {
      type: "category",
      boundaryGap: false,
      data: ["Mon", "Tue", "Wed", "Thu", "Fri"],
    },
    yAxis: {
      type: "value",
    },
    series: [
      {
        width: 300,
        height: 200,
        data: [820, 932, 901, 934, 1290],
        type: "line",
        areaStyle: {},
      },
    ],
  };

  myChart.setOption(option);
  window.addEventListener("resize", function () {
    myChart.resize();
  });
})();
